package cn.bestick.weightrecord.model;

import java.sql.Timestamp;

/**
 * Created by IntelliJ IDEA.
 * User: Bestick
 * Date: 2016/7/8
 * Time: 16:50
 * Url: http://www.bestick.cn
 * Copyright © 2015-2016 Bestick All rights reserved
 * -----------------------------------------------------------
 * 会当凌绝顶，一览众山小。
 */
public class Record {

    /**
     * recordId
     */
    private Integer recordId;

    /**
     * 最大体重
     */
    private double maxWeight;

    /**
     * 最小体重
     */
    private double minWeight;

    /**
     * 外键userId
     */
    private Integer userId;

    /**
     * 当前记录时间
     */
    private Timestamp recordTime;

    public Record() {
    }

    public Record(Integer recordId, double maxWeight, double minWeight, Integer userId, Timestamp recordTime) {
        this.recordId = recordId;
        this.maxWeight = maxWeight;
        this.minWeight = minWeight;
        this.userId = userId;
        this.recordTime = recordTime;
    }

    public Integer getRecordId() {
        return recordId;
    }

    public void setRecordId(Integer recordId) {
        this.recordId = recordId;
    }

    public double getMaxWeight() {
        return maxWeight;
    }

    public void setMaxWeight(double maxWeight) {
        this.maxWeight = maxWeight;
    }

    public double getMinWeight() {
        return minWeight;
    }

    public void setMinWeight(double minWeight) {
        this.minWeight = minWeight;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    @Override
    public String toString() {
        return "Record{" +
                "recordId=" + recordId +
                ", maxWeight=" + maxWeight +
                ", minWeight=" + minWeight +
                ", userId=" + userId +
                ", recordTime=" + recordTime +
                '}';
    }
}
